package utils

import (
	"dj-srv/pkg"
	"fmt"
)

type Send interface {
	SendSms()
}
type AliSms struct {
	Mobile string
}

func (a *AliSms) SendSms(mobile, code string) {
	sms, err := pkg.AliSendSms(mobile, code)
	if err != nil {
		return
	} else {
		fmt.Println(sms)
	}
}

type Duanxinbao struct {
	Mobile string
}

func (d *Duanxinbao) SendSms(mobile, code string) {
	sms, err := pkg.AliSendSms(mobile, code)
	if err != nil {
		return
	} else {
		fmt.Println(sms)
	}
}

type HuyiSms struct {
	Mobile string
}

func (h *HuyiSms) SendSms(mobile, code string) {
	sms, err := pkg.AliSendSms(mobile, code)
	if err != nil {
		return
	} else {
		fmt.Println(sms)
	}
}
